home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / firefox-3.0.14 / chrome / browser.jar / content / browser / places / places.xul < prev    next >
Encoding:
Extensible Markup Language  |  2008-05-01  |  19.7 KB  |  430 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <?xml-stylesheet href="chrome://browser/content/places/places.css"?>
  5. <?xml-stylesheet href="chrome://browser/content/places/organizer.css"?>
  6.  
  7. <?xml-stylesheet href="chrome://global/skin/"?>
  8. <?xml-stylesheet href="chrome://browser/skin/places/places.css"?>
  9. <?xml-stylesheet href="chrome://browser/skin/places/organizer.css"?>
  10.  
  11. <?xul-overlay href="chrome://browser/content/places/editBookmarkOverlay.xul"?>
  12.  
  13. <?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
  14. <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
  15. <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
  16.  
  17. <!DOCTYPE window [
  18. <!ENTITY % placesDTD SYSTEM "chrome://browser/locale/places/places.dtd">
  19. %placesDTD;
  20. <!ENTITY % editMenuOverlayDTD SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
  21. %editMenuOverlayDTD;
  22. <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  23. %globalDTD;
  24. <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd">
  25. %browserDTD;
  26. ]>
  27.  
  28. <window id="places"
  29.         title="&places.library.title;" 
  30.         windowtype="Places:Organizer" 
  31.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  32.         xmlns:html="http://www.w3.org/1999/xhtml"
  33.         onload="PlacesOrganizer.init();"
  34.         onunload="PlacesOrganizer.destroy();"
  35.         width="&places.library.width;" height="&places.library.height;"
  36.         screenX="10" screenY="10"
  37.         persist="width height screenX screenY sizemode">
  38.  
  39.   <script type="application/x-javascript"
  40.           src="chrome://browser/content/places/places.js"/>
  41.   <script type="application/javascript"
  42.           src="chrome://browser/content/utilityOverlay.js"/>
  43.   <script type="application/javascript"
  44.           src="chrome://browser/content/places/editBookmarkOverlay.js"/>
  45.  
  46.   <stringbundleset id="placesStringSet">
  47.     <stringbundle id="brandStrings" src="chrome://branding/locale/brand.properties"/>
  48.   </stringbundleset>
  49.  
  50.  
  51.   <commandset id="editMenuCommands"/>
  52.   <commandset id="placesCommands"/>
  53.  
  54.   <commandset id="organizerCommandSet">
  55.     <command id="OrganizerCommand_find:all"
  56.              label="&cmd.findInBookmarks.label;"
  57.              accesskey="&cmd.findInBookmarks.accesskey;"
  58.              oncommand="PlacesSearchBox.findAll();"/>
  59.     <command id="OrganizerCommand_find:current"
  60.              label="&cmd.findCurrent.label;"
  61.              accesskey="&cmd.findCurrent.accesskey;"
  62.              oncommand="PlacesSearchBox.findCurrent();"/>
  63.     <command id="OrganizerCommand_export"
  64.              oncommand="PlacesOrganizer.exportBookmarks();"/>
  65.     <command id="OrganizerCommand_import"
  66.              oncommand="PlacesOrganizer.importBookmarks();"/>
  67.     <command id="OrganizerCommand_backup"
  68.              oncommand="PlacesOrganizer.backupBookmarks();"/>
  69.     <command id="OrganizerCommand_restoreFromFile"
  70.              oncommand="PlacesOrganizer.onRestoreBookmarksFromFile();"/>
  71.     <command id="OrganizerCommand_search:save"
  72.              oncommand="PlacesOrganizer.saveSearch();"/>
  73.     <command id="OrganizerCommand_search:moreCriteria"
  74.              oncommand="PlacesQueryBuilder.addRow();"/>
  75.     <command id="OrganizerCommand:Back"
  76.              oncommand="PlacesOrganizer.back();"/>
  77.     <command id="OrganizerCommand:Forward"
  78.              oncommand="PlacesOrganizer.forward();"/>
  79.   </commandset>
  80.  
  81.  
  82.   <keyset id="placesOrganizerKeyset">
  83.     <!-- Instantiation Keys -->
  84.     <key id="placesKey_close" key="&cmd.close.key;" modifiers="accel" 
  85.          oncommand="close();"/>
  86.          
  87.     <!-- Command Keys -->
  88.     <key id="placesKey_find:all"
  89.          command="OrganizerCommand_find:all" 
  90.          key="&cmd.find.key;"
  91.          modifiers="accel"/>
  92.     <key id="placesKey_find:current"
  93.          command="OrganizerCommand_find:current" 
  94.          key="&cmd.find.key;"
  95.          modifiers="accel,shift"/>
  96.  
  97.     <!-- Back/Forward Keys Support -->
  98.     <key id="placesKey_goBackKb"
  99.          keycode="VK_LEFT"
  100.          command="OrganizerCommand:Back"
  101.          modifiers="alt"/>
  102.     <key id="placesKey_goForwardKb"
  103.          keycode="VK_RIGHT"
  104.          command="OrganizerCommand:Forward"
  105.          modifiers="alt"/>
  106.     <key id="placesKey_goBackKb2"
  107.          key="&goBackCmd.commandKey;"
  108.          command="OrganizerCommand:Back"
  109.          modifiers="accel"/>
  110.     <key id="placesKey_goForwardKb2"
  111.          key="&goForwardCmd.commandKey;"
  112.          command="OrganizerCommand:Forward"
  113.          modifiers="accel"/>
  114.   </keyset>
  115.  
  116.   <keyset id="editMenuKeys">
  117.   </keyset>
  118.  
  119.   <popupset id="placesPopupset">
  120.     <popup id="placesContext"/>
  121.     <popup id="placesColumnsContext"
  122.            onpopupshowing="ViewMenu.fillWithColumns(event, null, null, 'checkbox', null);"
  123.            oncommand="ViewMenu.showHideColumn(event.target); event.stopPropagation();"/>
  124.   </popupset>
  125.  
  126.   <toolbox id="placesToolbox">
  127.     <toolbar class="chromeclass-toolbar" id="placesToolbar" align="center" chromedir="&locale.dir;">
  128.       <toolbarbutton id="back-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  129.                      command="OrganizerCommand:Back"
  130.                      tooltiptext="&backButton.tooltip;"
  131.                      accesskey="&backCmd.accesskey;"
  132.                      chromedir="&locale.dir;"
  133.                      disabled="true"/>
  134.  
  135.       <toolbarbutton id="forward-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  136.                      command="OrganizerCommand:Forward"
  137.                      tooltiptext="&forwardButton.tooltip;"
  138.                      accesskey="&forwardCmd.accesskey;"
  139.                      chromedir="&locale.dir;"
  140.                      disabled="true"/>
  141.  
  142.       <menubar id="placesMenu" chromedir="&locale.dir;">
  143.         <menu accesskey="&organize.accesskey;" class="menu-iconic"
  144.               id="organizeButton" label="&organize.label;">
  145.           <menupopup id="organizeButtonPopup">
  146.             <menuitem id="newbookmark"
  147.                       command="placesCmd_new:bookmark"
  148.                       label="&cmd.new_bookmark.label;"
  149.                       accesskey="&cmd.new_bookmark.accesskey;"/>
  150.             <menuitem id="newfolder"
  151.                       command="placesCmd_new:folder"
  152.                       label="&cmd.new_folder.label;"
  153.                       accesskey="&cmd.new_folder.accesskey;"/>
  154.             <menuitem id="newseparator"
  155.                       command="placesCmd_new:separator"
  156.                       label="&cmd.new_separator.label;"
  157.                       accesskey="&cmd.new_separator.accesskey;"/>
  158.  
  159.             <menuseparator id="orgCutSeparator"/>
  160.  
  161.             <menuitem id="orgCut"
  162.                       command="cmd_cut"
  163.                       label="&cutCmd.label;"
  164.                       key="key_cut"
  165.                       accesskey="&cutCmd.accesskey;"
  166.                       selection="separator|link|folder|mixed"/>
  167.             <menuitem id="orgCopy"
  168.                       command="cmd_copy"
  169.                       label="©Cmd.label;"
  170.                       key="key_copy"
  171.                       accesskey="©Cmd.accesskey;"
  172.                       selection="separator|link|folder|mixed"/>
  173.             <menuitem id="orgPaste"
  174.                       command="cmd_paste"
  175.                       label="&pasteCmd.label;"
  176.                       key="key_paste"
  177.                       accesskey="&pasteCmd.accesskey;"
  178.                       selection="mutable"/>
  179.             <menuitem id="orgUndo"
  180.                       command="cmd_undo"
  181.                       label="&undoCmd.label;"
  182.                       key="key_undo"
  183.                       accesskey="&undoCmd.accesskey;"/>
  184.             <menuitem id="orgRedo"
  185.                       command="cmd_redo"
  186.                       label="&redoCmd.label;"
  187.                       key="key_redo"
  188.                       accesskey="&redoCmd.accesskey;"/>
  189.  
  190.             <menuseparator id="selectAllSeparator"/>
  191.             
  192.             <menuitem id="orgSelectAll"
  193.                       command="cmd_selectAll"
  194.                       label="&selectAllCmd.label;"
  195.                       key="key_selectAll"
  196.                       accesskey="&selectAllCmd.accesskey;"/>
  197.  
  198.             <menuseparator id="orgMoveSeparator"/>
  199.             <menuitem id="orgMoveBookmarks"
  200.                       command="placesCmd_moveBookmarks"
  201.                       label="&cmd.moveBookmarks.label;"
  202.                       accesskey="&cmd.moveBookmarks.accesskey;"/>
  203.             <menuitem id="orgDelete"
  204.                       command="cmd_delete"
  205.                       label="&deleteCmd.label;"
  206.                       key="key_delete"
  207.                       accesskey="&deleteCmd.accesskey;"/>
  208.             <menuseparator id="orgCloseSeparator"/>
  209.  
  210.             <menuitem id="orgClose"
  211.                       key="placesKey_close" 
  212.                       label="&file.close.label;"
  213.                       accesskey="&file.close.accesskey;" 
  214.                       oncommand="close();"/>
  215.           </menupopup>
  216.         </menu>
  217.         <menu accesskey="&views.accesskey;" class="menu-iconic"
  218.               id="viewMenu" label="&views.label;">
  219.           <menupopup id="viewMenuPopup">
  220. <!--
  221.             <menuitem id="viewDetails"
  222.                       type="radio"
  223.                       label="&view.details.label;"
  224.                       accesskey="&view.details.accesskey;">
  225.             </menuitem>
  226.  
  227.             <menuseparator id="addonsSeparator"/>
  228.  
  229.             <menuitem id="viewAddons"
  230.                       command=""
  231.                       label="&view.addons.label;"
  232.                       accesskey="&view.addons.label;"/>
  233.             <menuseparator id="sortingSeparator"/>
  234. -->
  235.  
  236.             <menu id="viewColumns" 
  237.                   label="&view.columns.label;" accesskey="&view.columns.accesskey;">
  238.               <menupopup onpopupshowing="ViewMenu.fillWithColumns(event, null, null, 'checkbox', null);"
  239.                          oncommand="ViewMenu.showHideColumn(event.target); event.stopPropagation();"/>
  240.             </menu>
  241.  
  242.             <menu id="viewSort" label="&view.sort.label;"
  243.                   accesskey="&view.sort.accesskey;">
  244.               <menupopup onpopupshowing="ViewMenu.populateSortMenu(event);"
  245.                          oncommand="ViewMenu.setSortColumn(event.target.column, null);">
  246.                 <menuitem id="viewUnsorted" type="radio" name="columns" 
  247.                           label="&view.unsorted.label;" accesskey="&view.unsorted.accesskey;"
  248.                           oncommand="ViewMenu.setSortColumn(null, null);"/>
  249.                 <menuseparator id="directionSeparator"/>
  250.                 <menuitem id="viewSortAscending" type="radio" name="direction" 
  251.                           label="&view.sortAscending.label;" accesskey="&view.sortAscending.accesskey;"
  252.                           oncommand="ViewMenu.setSortColumn(null, 'ascending'); event.stopPropagation();"/>
  253.                 <menuitem id="viewSortDescending" type="radio" name="direction" 
  254.                           label="&view.sortDescending.label;" accesskey="&view.sortDescending.accesskey;"
  255.                           oncommand="ViewMenu.setSortColumn(null, 'descending'); event.stopPropagation();"/>
  256.               </menupopup>
  257.             </menu>
  258. <!--
  259.             <menuseparator id="groupingSeparator" observes="placesBC_grouping:separator"/>
  260.  
  261.             <menuitem id="viewGroupNone" type="radio" name="group"
  262.                       observes="placesBC_grouping:off"/>
  263.             <menuitem id="viewGroupGroup" type="radio" name="group"
  264.                       observes="placesBC_grouping:on"/>
  265. -->
  266.           </menupopup>
  267.         </menu>
  268.         <menu accesskey="&maintenance.accesskey;" class="menu-iconic"
  269.               id="maintenanceButton" label="&maintenance.label;">
  270.           <menupopup id="maintenanceButtonPopup">
  271.             <menuitem id="backupBookmarks"
  272.                       command="OrganizerCommand_backup"
  273.                       label="&cmd.backup.label;"
  274.                       accesskey="&cmd.backup.accesskey;"/>
  275.             <menu id="fileRestoreMenu" label="&cmd.restore2.label;"
  276.                       accesskey="&cmd.restore2.accesskey;">
  277.               <menupopup id="fileRestorePopup" onpopupshowing="PlacesOrganizer.populateRestoreMenu();">
  278.                 <menuitem id="restoreFromFile"
  279.                           command="OrganizerCommand_restoreFromFile"
  280.                           label="&cmd.restoreFromFile.label;"
  281.                           accesskey="&cmd.restoreFromFile.accesskey;"/>
  282.               </menupopup>
  283.             </menu>
  284.             <menuseparator/>
  285.             <menuitem id="fileImport"
  286.                       command="OrganizerCommand_import"
  287.                       label="&cmd.importHTML.label;"
  288.                       accesskey="&cmd.importHTML.accesskey;"/>
  289.             <menuitem id="fileExport"
  290.                       command="OrganizerCommand_export"
  291.                       label="&cmd.exportHTML.label;"
  292.                       accesskey="&cmd.exportHTML.accesskey;"/>
  293.           </menupopup>
  294.         </menu>
  295.       </menubar>
  296.  
  297.       <spacer flex="1"/>
  298.  
  299.       <textbox id="searchFilter" style="width: 23em;" timeout="500" clickSelectsAll="true"
  300.                oncommand="PlacesSearchBox.search(this.value);"
  301.                onreset="PlacesOrganizer.onPlaceSelected(false);"
  302.                collection="bookmarks">
  303.       </textbox>
  304.     </toolbar>
  305.   </toolbox>
  306.  
  307.   <hbox flex="1" id="placesView">
  308.     <tree id="placesList"
  309.           class="placesTree"
  310.           type="places"
  311.           hidecolumnpicker="true" context="placesContext"
  312.           onselect="PlacesOrganizer.onPlaceSelected(true);"
  313.           onclick="PlacesOrganizer.onTreeClick(event);"
  314.           onfocus="PlacesOrganizer.onTreeFocus(event);"          
  315.           seltype="single"
  316.           persist="width"
  317.           width="200"
  318.           minwidth="100"
  319.           maxwidth="400">
  320.       <treecols>
  321.         <treecol anonid="title" flex="1" primary="true" hideheader="true"/>
  322.       </treecols>
  323.       <treechildren flex="1"/>
  324.     </tree>
  325.     <splitter collapse="none" persist="state"></splitter>
  326.     <vbox id="contentView" flex="4">
  327.       <deck id="contentDeck" flex="1">
  328.         <vbox id="defaultView" flex="1">
  329.           <vbox id="searchModifiers" hidden="true">
  330.             <toolbar id="organizerScopeBar" class="chromeclass-toolbar" align="center">
  331.               <label id="scopeBarTitle" value="&search.label;"/>
  332.               <toolbarbutton id="scopeBarFolder" type="radio" group="scopeBar" 
  333.                              oncommand="PlacesQueryBuilder.onScopeSelected(this);"
  334.                              label="&search.scopeFolder.label;"/>
  335.               <toolbarbutton id="scopeBarAll" type="radio" group="scopeBar"
  336.                              oncommand="PlacesQueryBuilder.onScopeSelected(this);"
  337.                              label="&search.scopeAll.label;"
  338.                              checked="true"/>
  339.               <!--
  340.               <toolbarbutton id="scopeBarDownloads" type="radio" group="scopeBar"
  341.                              oncommand="PlacesQueryBuilder.onScopeSelected(this);"
  342.                              label="&search.scopeDownloads.label;"/>
  343.               -->
  344.               <toolbarbutton id="scopeBarHistory" type="radio" group="scopeBar"
  345.                              oncommand="PlacesQueryBuilder.onScopeSelected(this);"
  346.                              label="&search.scopeHistory.label;"/>
  347.               <spacer flex="1"/>
  348.               <button id="saveSearch" class="small" 
  349.                        label="&saveSearch.label;" accesskey="&saveSearch.accesskey;"
  350.                        command="OrganizerCommand_search:save"/>
  351.             </toolbar>
  352.           </vbox>
  353.           <vbox flex="1">
  354.             <tree id="placeContent" class="placesTree" context="placesContext"
  355.                   hidecolumnpicker="true"
  356.                   flex="1" type="places"
  357.                   flatList="true"
  358.                   enableColumnDrag="true"
  359.                   onkeypress="if (event.keyCode == KeyEvent.DOM_VK_RETURN) PlacesOrganizer.openSelectedNode(event);"
  360.                   ondblclick="PlacesOrganizer.openSelectedNode(event);"
  361.                   onopenflatcontainer="PlacesOrganizer.openFlatContainer(aContainer);"
  362.                   onselect="PlacesOrganizer.onContentTreeSelect();"
  363.                   onfocus="PlacesOrganizer.onTreeFocus(event);"
  364.                   onclick="PlacesOrganizer.onTreeClick(event);">
  365.               <treecols id="placeContentColumns" context="placesColumnsContext">
  366.                 <treecol label="&col.name.label;" id="placesContentTitle" anonid="title" flex="5" primary="true" ordinal="1" 
  367.                          persist="width hidden ordinal sortActive sortDirection"/>
  368.                 <splitter class="tree-splitter"/>
  369.                 <treecol label="&col.tags.label;" id="placesContentTags" anonid="tags" flex="2"
  370.                          persist="width hidden ordinal sortActive sortDirection"/>
  371.                 <splitter class="tree-splitter"/>
  372.                 <treecol label="&col.url.label;" id="placesContentUrl" anonid="url" flex="5"
  373.                          persist="width hidden ordinal sortActive sortDirection"/>
  374.                 <splitter class="tree-splitter"/>
  375.                 <treecol label="&col.lastvisit.label;" id="placesContentDate" anonid="date" flex="1" hidden="true"
  376.                          persist="width hidden ordinal sortActive sortDirection"/>
  377.                 <splitter class="tree-splitter"/>
  378.                 <treecol label="&col.visitcount.label;" id="placesContentVisitCount" anonid="visitCount" flex="1" hidden="true"
  379.                          persist="width hidden ordinal sortActive sortDirection"/>
  380.                 <splitter class="tree-splitter"/>
  381.                 <treecol label="&col.keyword.label;" id="placesContentKeyword" anonid="keyword" flex="1" hidden="true"
  382.                          persist="width hidden ordinal sortActive sortDirection"/>
  383.                 <splitter class="tree-splitter"/>
  384.                 <treecol label="&col.description.label;" id="placesContentDescription" anonid="description" flex="1" hidden="true"
  385.                          persist="width hidden ordinal sortActive sortDirection"/>
  386.                 <splitter class="tree-splitter"/>
  387.                 <treecol label="&col.dateadded.label;" id="placesContentDateAdded" anonid="dateAdded" flex="1" hidden="true"
  388.                          persist="width hidden ordinal sortActive sortDirection"/>
  389.                 <splitter class="tree-splitter"/>
  390.                 <treecol label="&col.lastmodified.label;" id="placesContentLastModified" anonid="lastModified" flex="1" hidden="true"
  391.                          persist="width hidden ordinal sortActive sortDirection"/>
  392.               </treecols>
  393.               <treechildren flex="1"/>
  394.             </tree>
  395.             <hbox id="infoPaneBox" style="height: 11em;">
  396.               <deck flex="1" id="detailsDeck">
  397.                 <vbox id="itemsCountBox" align="center">
  398.                   <spacer flex="3"/>
  399.                   <label id="itemsCountText"/>
  400.                   <spacer flex="1"/>
  401.                   <description id="selectItemDescription">
  402.                      &detailsPane.selectAnItemText.description;
  403.                   </description>
  404.                   <spacer flex="3"/>
  405.                 </vbox>
  406.                 <vbox id="infoBox" minimal="true">
  407.                   <vbox id="editBookmarkPanelContent"/>
  408.                   <spacer flex="1"/>
  409.                   <hbox>
  410.                     <button type="image" id="infoBoxExpander"
  411.                             lesslabel="&detailsPane.less.label;"
  412.                             lessaccesskey="&detailsPane.less.accesskey;"
  413.                             morelabel="&detailsPane.more.label;"
  414.                             moreaccesskey="&detailsPane.more.accesskey;"
  415.                             label="&detailsPane.more.label;"
  416.                             accesskey="&detailsPane.more.accesskey;"
  417.                             oncommand="PlacesOrganizer.toggleAdditionalInfoFields();"
  418.                             observes="paneElementsBroadcaster"/>
  419.                     <spacer flex="1"/>
  420.                   </hbox>
  421.                 </vbox>
  422.               </deck>
  423.             </hbox>
  424.           </vbox>
  425.         </vbox>
  426.       </deck>
  427.     </vbox>
  428.   </hbox>
  429. </window>
  430.